package ch.fusun.baron.serverapp.command;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;

import ch.fusun.baron.serverapp.Activator;

/**
 * Command for starting up the server
 */
public class StartupCommand extends AbstractHandler {

	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		Activator.getDefault().getServer().startGame();
		return null;
	}

}
